package com.itcoon.cloud.framework.mybatis.register;

import com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor;

import java.util.ArrayList;
import java.util.List;


public class InnerInterceptorRegister {
    private static final List<InnerInterceptor> INTERCEPTORS = new ArrayList<>();

    public void register(InnerInterceptor interceptor){
        INTERCEPTORS.add(interceptor);
    }

    public List<InnerInterceptor> getInterceptors(){
        return InnerInterceptorRegister.INTERCEPTORS;
    }
}
